from flask_restx import Namespace


def make_authorizations():
	return {
		"Bearer": {
			"type": "apiKey",
			"in": "header",
			"name": "Authorization",
			"description": "Add 'Bearer <access_token>'"
		}
	}


def make_namespace(name: str, description: str) -> Namespace:
	return Namespace(name=name, description=description, authorizations=make_authorizations(), security="Bearer")


